<?php /* Smarty version 3.1.27, created on 2017-04-20 15:30:02
         compiled from "D:\wamp\www\XDL\Git2\views\User\index.html" */ ?>
<?php
/*%%SmartyHeaderCode:3062258f8d3fa945ef3_39825334%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1b1e702bef058b9df881213ab64cf558a0e7a4f7' => 
    array (
      0 => 'D:\\wamp\\www\\XDL\\Git2\\views\\User\\index.html',
      1 => 1492702197,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3062258f8d3fa945ef3_39825334',
  'variables' => 
  array (
    'list' => 0,
    'val' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_58f8d3fa99e077_00596745',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_58f8d3fa99e077_00596745')) {
function content_58f8d3fa99e077_00596745 ($_smarty_tpl) {

$_smarty_tpl->properties['nocache_hash'] = '3062258f8d3fa945ef3_39825334';
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="./public/css/bootstrap.min.css">
</head>
<body>
    
    <div class="container">
    <h1>index smarty</h1>
    <a href="./index.php" class="btn btn-primary">首页</a>
    <a href="./index.php?c=User&a=add" class="btn btn-primary">添加</a>
    <br><br>
    
        <table class="table table-hover" cellpadding="0" cellspacing="0" width="600">
        <tr>
            <th>id</th>
            <th>姓名</th>
            <th>性别</th>
            <th>年龄</th>
            <th>身高</th>
            <th>操作</th>
        </tr>
        <?php
$_from = $_smarty_tpl->tpl_vars['list']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['val'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['val']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
$foreach_val_Sav = $_smarty_tpl->tpl_vars['val'];
?>
        <tr>
            <td><?php echo $_smarty_tpl->tpl_vars['val']->value['id'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['val']->value['name'];?>
</td>
            <td>
                <?php if ($_smarty_tpl->tpl_vars['val']->value['sex'] == 0) {?>男
                <?php } else { ?>女
                <?php }?>
            </td>
            <td><?php echo $_smarty_tpl->tpl_vars['val']->value['age'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['val']->value['height'];?>
</td>
            <td class="col-sm-2">
                <a href="./index.php?c=User&a=edit&id=<?php echo $_smarty_tpl->tpl_vars['val']->value['id'];?>
" class="btn btn-primary">编辑</a>
                <a href="./index.php?c=User&a=del&id=<?php echo $_smarty_tpl->tpl_vars['val']->value['id'];?>
" class="btn btn-danger">删除</a>
            </td>
        </tr>
        <?php
$_smarty_tpl->tpl_vars['val'] = $foreach_val_Sav;
}
?>
    </table>
    
    </div>
    
</body>
</html><?php }
}
?>